package com.umeox.watch.moto.apiclient.model;

import java.util.List;

/**
 * Created by Rambo 2024/5/28/0028
 * Describe:
 */
public class IMGroupDTO {

    public String id;
    //0:家庭群聊 1是APP群聊 2是设备群聊
    public int type;
    public String name;
    public String avatar;
    public Integer createTime;
    public List<GroupMemberListDTO> groupMemberList;

    public static class GroupMemberListDTO {
        public String memberId;
        public Integer type; //0：群主；1：管理员；2：普通成员；
        public String name;
        public String avatar;
        public Integer avatarIndex; //固定头像的下标
        public Integer createTime; //加入时间

        @Override
        public String toString() {
            return "GroupMemberListDTO{" +
                    "memberId='" + memberId + '\'' +
                    ", type=" + type +
                    ", name='" + name + '\'' +
                    ", avatar='" + avatar + '\'' +
                    ", avatarIndex=" + avatarIndex +
                    ", createTime=" + createTime +
                    '}';
        }
    }


    @Override
    public String toString() {
        return "IMGroupDTO{" +
                "id='" + id + '\'' +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", createTime=" + createTime +
                ", groupMemberList=" + groupMemberList +
                '}';
    }
}
